﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:controls="clr-namespace:SilverlightDebateJetPack.Controls" 
    xmlns:SilverlightDebateViewModel="clr-namespace:SilverlightDebateViewModel;assembly=SilverlightDebateViewModel"
    xmlns:local="clr-namespace:SilverlightDebateJetPack" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    x:Class="SilverlightDebateJetPack.MainPage"
    mc:Ignorable="d" 
    d:DesignWidth="800" d:DesignHeight="580" Height="580" Width="800">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="Assets/CoreStyles.xaml"/>
				<ResourceDictionary Source="Assets/SDKStyles.xaml"/>
				<ResourceDictionary Source="Assets/Styles.xaml"/>
				<ResourceDictionary Source="Assets/ToolkitStyles.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			</ResourceDictionary>
	</UserControl.Resources>
	<UserControl.DataContext>
		<SilverlightDebateViewModel:MainPageViewModel/>
	</UserControl.DataContext>

    <Grid>

      <controls:TiledBackground SourceUri="/SilverlightDebateJetPack;component/Images/backgroundtexture.png" />
      <Image Source="/SilverlightDebateJetPack;component/Images/backgroundshadow.png" Stretch="Fill" />

    	<local:CustomTabControl Margin="41,25,60,45" Width="699" Height="510" Background="{StaticResource DarkBackground}" BorderThickness="1" BorderBrush="{StaticResource CheckBoxBackgroundBrush}">
    		<sdk:TabItem Header="Search" Margin="-2,0,0,0">
    			<Grid>
    				<local:Statements DataContext="{Binding VMStatementsViewModel, Mode=TwoWay}" Width="Auto" Height="Auto"/>
    			</Grid>
    		</sdk:TabItem>
    		<sdk:TabItem Header="Statements">
    			<Grid Background="#FFE5E5E5">
    				<local:CustomTabControl d:LayoutOverrides="Width, Height" Background="{StaticResource DarkControlBorderBrush}">
    					<sdk:TabItem Header="TabItem">
    						<Grid Background="#FFE5E5E5"/>
    					</sdk:TabItem>
    					<sdk:TabItem Header="TabItem">
    						<Grid Background="#FFE5E5E5"/>
    					</sdk:TabItem>
    				</local:CustomTabControl>
    			</Grid>
    		</sdk:TabItem>
    	</local:CustomTabControl>

    </Grid>
</UserControl>